package com.xm.xmds1705083.service.startup;

import com.xm.xmds1705083.service.mapper.DuoduoDblogMapper;
import com.xm.xmds1705083.service.netty.DeviceTCPServer;
import com.xm.xmds1705083.service.util.ThreadSock;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.Executors;

/**
 * 杭州新苗网络科技有限公司
 * @author meihf
 * @date 2017/06/14
 * @description
 */
public class StartupService {

    static Logger logger = LoggerFactory.getLogger(StartupService.class);

    public static void main(String[] args) throws Exception {
        ApplicationContext ctx = new ClassPathXmlApplicationContext("spring/application-context.xml");
        DeviceTCPServer server = ctx.getBean(DeviceTCPServer.class);
        server.bind(8833,200);
    }

}
